FROM registry.cn-beijing.aliyuncs.com/chaozan/skywalking-java-agent:9.3.0.1-java21-chaozan3
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
WORKDIR server
ARG JAR_FILE=./target/*.jar
ARG LIB_FILE=./target/lib
COPY ${JAR_FILE} app.jar
COPY ${LIB_FILE} ./lib
ENTRYPOINT [ "sh", "-c", "exec java -Xms128m -Xmx1024m -Djava.security.egd=file:/dev/./urandom -jar app.jar"]